/******************************************************************************
 * (c) 2011 Komersi Software                                                  *
 * www.komersisoftware.com                                                    *
 *                                                                            *
 * This file is part of Tadah                                                 *
 * Licensed under GNU General Public License v2.0                             *
 * Check LICENSE.TXT for more information                                     *
 ******************************************************************************/

#ifndef _PRIMARYINDEX_H_
#define _PRIMARYINDEX_H_

#include "column.h"

// TODO: make it a disconnected cursor
typedef struct primary_index_info
{
	ddl_column_t *column;
	void *value;
	long position;
	struct primary_index_info *next;
} primary_index_info_t;

primary_index_info_t *new_primary_index_info(ddl_column_t *column, long position, void *value);
int primary_index_list_add(primary_index_info_t **list, primary_index_info_t *item);
void dispose_primary_index_list(primary_index_info_t **list);

#endif // _PRIMARYINDEX_H_
























